@extends('home.layouts._center')
@section('content')
    <div class="mod_main">
        <div class="mt">
            <h3>我的订单记录</h3>
        </div>
        <div class="tb_order">
            <table width="100%">
                @foreach($orders as $order)
                    <tbody class="fore0">
                    <tr>
                        <td><div class="img-list"><a href="{{route('home.content',$order->orderDetails[0]->good)}}"><img src="{{$order->orderDetails[0]->good->picture[0]}}" title=""></a></div></td>
                        <td>
                            <a href="{{route('home.content',$order->orderDetails[0]->good)}}">{{$order->orderDetails[0]->good->title}}</a>
                            【订单号：{{$order->order_num}}】
                        </td>
                        <td><div class="u-name">{{$order->address->linkname}}</div></td>
                        <td>￥{{$order->total_price}}<br>在线支付</td>
                        <td><span class="ftx-03">{{$order->created_at}}</span></td>
                        <td><span class="ftx-03">{{$order['status']}}</span></td>
                        <td class="order-doi"><a  href="{{route('home.center.myOrder')}}" >查看</a></td>
                    </tr>
                    </tbody>
                @endforeach
            </table>
        </div>
    </div>
@endsection
